#ifndef AICHESS_H
#define AICHESS_H

#include "mainscene.h"

class AIchess : public mainscene
{
public:
    AIchess();
    void mousePressEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    int computerMove(stone sto[]);
    bool can_chizi(stone sto[],int moveid);
    void zuo(stone sto[],int num);
    void you(stone sto[],int num);
    void shang(stone sto[],int num);
    void xia(stone sto[],int num);
    int getScore(stone sto[],int num,int moveway);
    bool canMove4(stone sto[],int movenum,int move_way);
};

#endif // AICHESS_H
